const router = require('koa-router')();

const { getArticle, getArticles, createArticle, deleteArticle, updateArticle } = require('../controllers/articles');
// const { protect } = require("../middlewares/auth");


router.get('/articles', getArticles);
router.post('/article', createArticle);
router.get('/article/:id', getArticle);
router.put('/article/:id', updateArticle);
router.delete('/article/:id', deleteArticle);

module.exports = router;
